#ifndef _GLOBAL__H
#define _GLOBAL__H

/**** 宏定义 ****/
#define ORIGIN_ENERGY 100

/**** 结构 ****/
/* 世界每一格代表的类型 */
typedef enum TYPE {
    NONE = 0,       // 0:not food(black color)
    BOUNDARY = 1,
    FOOD = 2,
    BODY = 3,       // 3:body(purple)
    DEAD_BODY = 4   // 4:dead_body(red)
} TYPE;

/* 身体在世界中的朝向 */
typedef enum DIRECTION {
    MOTIONLESS = 0, // 静止
    TOP = 1,
    BOTTOM = 2,
    LEFT = 3,
    RIGHT = 4,
    TOP_LEFT = 5,
    TOP_RIGHT = 6,
    BOTTOM_LEFT = 7,
    BOTTOM_RIGHT = 8
} DIRECTION;

#endif // _GLOBAL__H
